package org.BUPT.entity;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

public class QuestionBO implements Serializable {

    private int id;
    private int userId;
    private String subject;
    private String title;
    private String content;
    private Date createTime;
    private Date editTime;
    private List<String> tags;
    private int ansNum;
    private int viewNum;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public String getSubject() {
        return subject;
    }

    public void setSubject(String subject) {
        this.subject = subject;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getEditTime() {
        return editTime;
    }

    public void setEditTime(Date editTime) {
        this.editTime = editTime;
    }

    public List<String> getTags() {
        return tags;
    }

    public void setTags(List<String> tags) {
        this.tags = tags;
    }

    public int getAnsNum() {
        return ansNum;
    }

    public void setAnsNum(int ansNum) {
        this.ansNum = ansNum;
    }

    public int getViewNum() {
        return viewNum;
    }

    public void setViewNum(int viewNum) {
        this.viewNum = viewNum;
    }

    public QuestionBO() {
    }

    public QuestionBO(int id, int userId, String subject, String title, String content, Date createTime, Date editTime, List<String> tags, int ansNum, int viewNum) {
        this.id = id;
        this.userId = userId;
        this.subject = subject;
        this.title = title;
        this.content = content;
        this.createTime = createTime;
        this.editTime = editTime;
        this.tags = tags;
        this.ansNum = ansNum;
        this.viewNum = viewNum;
    }
}
